AmpProject\AmpWP\PairedRouting C

Total Complexity 122
Dependencies 17
Dependents 5
Total lines 995
Lines of code 499
Logical lines of code 237
Comment lines 371
Methods 32
Properties 8

Methods 32

Method Rating Maintainability Complexity Lines of code
get_endpoint_path_slug_conflicts()
A
43 12 48
get_custom_paired_structure_sources()
A
45 12 42
redirect_extraneous_paired_endpoint()
A
51 13 26
correct_query_when_is_front_page()
A
53 8 23
has_endpoint()
S
53 7 25
filter_default_options()
S
53 7 23
get_paired_url_examples()
S
49 6 34
get_paired_url_structure()
S
58 5 15
filter_get_pagenum_link()
S
53 4 26
detect_endpoint_in_environment()
S
58 4 16
restore_path_endpoint_in_environment()
S
57 4 16
filter_unique_post_slug()
S
55 3 22
filter_rest_options()
S
57 3 17
initialize_paired_request()
S
58 3 15
get_all_structure_paired_urls()
S
62 3 11
sanitize_options()
S
63 3 11
add_paired_request_hooks()
S
62 3 11
add_permalink_settings_notice()
S
56 2 20
extract_endpoint_from_environment_before_parse_request()
S
66 3 8
filter_rest_options_schema()
S
53 1 27
filter_request_after_endpoint_extraction()
S
71 2 6
check_stale_late_defined_slug_option()
S
70 2 6
get_late_defined_slug()
S
79 2 3
maybe_add_paired_endpoint()
S
72 2 6
register()
S
62 1 10
is_using_permalinks()
S
79 1 3
is_using_path_suffix()
S
66 1 10
add_endpoint()
S
80 1 3
remove_endpoint()
S
80 1 3
has_custom_paired_url_structure()
S
80 1 3
update_late_defined_slug_option()
S
80 1 3
__construct()
S
69 1 7